# debian stretch: dhcpcd does not exist
# find the dhcpcd binary and create a symlink to it...

case ${DISTRO_BINARY_COMPAT} in ubuntu|trisquel|debian|devuan|raspbian)
	dhcpcd="$(find bin sbin usr/sbin -name dhcpcd 2>/dev/null)"
	if [ "$dhcpcd" = "" ] ; then
		dhcpcd="$(find bin sbin usr/sbin -name 'dhcpcd*' 2>/dev/null | head -1)"
		[ "$dhcpcd" != "" ] && ln -sv ${dhcpcd##*/} ${dhcpcd%/*}/dhcpcd
	fi
esac

rm -rf etc/init.d etc/rc.d 2>/dev/null

